package robot.gui;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import robot.arm.*;

import com.sun.j3d.utils.geometry.*;

import com.sun.j3d.utils.universe.*;

import javax.media.j3d.*;

import javax.vecmath.*;

public class OrangsGUI extends JFrame 
                 implements ActionListener {

  private JButton jbtLinks = new JButton("Links");
  private JButton jbtJoints = new JButton("Joints");
  private JButton jbtReplays = new JButton("Replays");
  private JButton jbtAbout = new JButton("About");
  private JButton jbtReset = new JButton("Reset");
  private JButton jbtZoomIn = new JButton("+");
  private JButton jbtZoomOut = new JButton("-");
  
  private Cylinders theArm;


  public OrangsGUI() {
    JPanel panel = new JPanel();
	 JPanel panel2 = new JPanel();
	 JPanel panel3 = new JPanel();
	 JPanel panelArm = new JPanel();
	 panel.add(jbtLinks);
	 panel.add(jbtJoints);
	 panel.add(jbtReplays);
	 panel.add(jbtAbout);
	 panel3.add(jbtReset);
	 panel2.add(new JLabel("Zoom"));
	 panel2.add(jbtZoomIn);
	 panel2.add(jbtZoomOut);

	 	 
	 this.add(panel, BorderLayout.NORTH);
	 this.add(panel2, BorderLayout.SOUTH);
	 this.add(panel3, BorderLayout.LINE_START);
	 this.add(panelArm, BorderLayout.CENTER);
	 
	 theArm = new Cylinders();
	 
	 panelArm.add(theArm);
}

    public void actionPerformed(ActionEvent e) {
/*    jbtLinks.addActionListener(new ActionListener() {
      System.out.println("Test");
    }*/
  };

  public static void main(String[] args){
    JFrame frame = new OrangsGUI();
	 frame.setTitle("Orangs Robotic Arm Simulator");
	 frame.setSize(900, 700);
	 frame.setLocationRelativeTo(null);
	 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	 frame.setVisible(true);

  }
}
